package com.dragon.common.constant;

/**
 * 通用常量类
 * @author wanggang
 *
 */
public class Constant {

	/**
	 * 日志追踪中标记名称 traceId
	 */
	public static final String TRACE_ID = "traceId";
	
	/**
	 * 正则表达式-手机号
	 */
	public final static String MOBLE_REG_STR = "^((13[0-9])|(14[0-9])|(15[^4,\\D])|(16[0-9])|(17[0-9])|(18[0-9])|(19[0-9]))\\d{8}$";
	
	/**
	 * 正则表达式-身份证
	 */
	public final static String IDCAED_REG_STR = "^[1-9]\\\\d{5}[1-9]\\\\d{3}((0\\\\d)|(1[0-2]))(([0|1|2]\\\\d)|3[0-1])\\\\d{3}([0-9]|X)$";

	/**
	 * 正则表达式-邮件
	 */
	public final static String MAIL_REG_STR = "^([\\w-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$";

	/**
	 * 正则表达式-正整数
	 */
	public final static String INTEGER_REG_STR = "^\\\\d+(\\\\.0)?$";
	
	public final static String REG_STR_NUMBER = "\\{(\\d)\\}";
	/**
	 * 同类产品禁止重复申请期限
	 */
	public static final Integer SAME_APPLY_LIMIT = 30;
	
	/**
	 * 身份证在黑名单中
	 */
	public static final String IDCARD_BLACK_TAG_YES = "0";
	
	/**
	 * 身份证不在黑名单中
	 */
	public static final String IDCARD_BLACK_TAG_NO = "1";
	
	/**
	 * 贷款状态-终审拒绝
	 */
	public static final String LOAN_STATUS_CR0 = "CR0";
	
	/**
	 * 贷款状态-申请状态中，不允许重复申请
	 */
	public static final String LOAN_STATUS_APPLY = "K00,K01,K02,K03,K04";
	
	/**
	 * 产品类型-就业贷
	 */
	public static final String PRODUCT_TYPE_EMPLOYMENT_LOAN = "16";
	
	
	/**
	 * 贷款状态-放款成功
	 */
	public static final String LOAN_STATUS_D01 = "D01";
	
	/**
	 * 信息完整度判断-完整
	 */
	public static final String USER_FULL_COMPLETE = "3";
	
	/**
	 * 信息完整度判断-认证中
	 */
	public static final String USER_FULL_INCOMPLETE = "2";
	
	/**
	 * 信息完整度判断-未进行
	 */
	public static final String USER_FULL_NOTDO = "1";
	
	/**
	 * 信息完整度判断-认证失败
	 */
	public static final String USER_FULL_FAIL = "4";
	
	/**
	 * 产品类型-洗刷刷
	 */
	public static final String PRODUCT_TYPE_XSS = "2";
	
	/**
	 * 产品类型-心想事成
	 */
	public static final String PRODUCT_TYPE_XXSC = "6";
	
	/**
	 * 产品类型-开心购
	 */
	public static final String PRODUCT_TYPE_KXG = "9";
	
	/**
	 * 产品类型-车险分期
	 */
	public static final String PRODUCT_TYPE_CXFQ = "13";
	
	/**
	 * 产品类型-老云保贷
	 */
	public static final String PRODUCT_TYPE_YBD = "1";
	
	/**
	 * 产品类型-大额云保贷
	 */
	public static final String PRODUCT_TYPE_BIG_YBD = "17";
	
	/**
	 * 心想事成-征信报告开关（用于用信息完整度判断中）
	 */
	public static final String SWITCH_XXSC_CREDIT_REPORT = "1";
	
	/**
	 * redis锁
	 */
	public static final String CONSUMERNAME = "lock";
	
	/**
	 * 关系类型-配偶
	 */
	public static final String MATE_CODE_ID = "09";
	
	
	/**
	 * 还款-提前结清
	 */
	public static final String REPAYMENT_SETTLE_IN_ADVANCE = "A003";
	
	/**
	 * 还款-还当期
	 */
	public static final String REPAYMENT_CURRENT_PERIOD = "A002";
	
	/**
	 * 还款-还下一期
	 */
	public static final String REPAYMENT_NEXT_PERIOD = "A005";
	
	/**
	 * 还款-是否提前结清-是
	 */
	public static final String REPAYMENT_IS_PREPAY_FLAG_YES = "1";
	
	/**
	 * 还款-是否提前结清-否
	 */
	public static final String REPAYMENT_IS_PREPAY_FLAG_NO = "0";
	
	/**
	 * 还款-还款成功
	 */
	public static final String REPAYMENT_SUCCESS = "0";
	
	/**
	 * 还款-代扣中
	 */
	public static final String REPAYMENT_ING= "1";
	
	/**
	 * 资金源-盛大
	 */
	public static final Integer FUNDS_SOURCE_SD= 14;
	
	/**
	 * 资金源-宝生
	 */
	public static final Integer FUNDS_SOURCE_BS= 13;
	

	/**
	 * 银行卡类型-待记卡
	 */
	public static final String BANK_TYPE_CREDIT_CARD= "贷记卡";
	
	/**
	 * 银行卡类型-准待记卡
	 */
	public static final String BANK_TYPE_QUASI_CREDIT_CARD= "准贷记卡";
	
	/**
	 * 开启验证银行卡三要素，4要素验证
	 */
	public static final String BANK_START_THREE_FOURP_SWITCH_ON= "1";
	
	/**
	 * 开关-用户登录设备校验-需要校验
	 */
	public static final String USER_LOGIN_DEVICE_VALID_SWITCH_ON= "on";
	
	
	/**
	 * 用户类型-客户
	 */
	public static final String USER_TYPE_CUSTOMER= "2";
	
	/**
	 * 用户状态-审核通过
	 */
	public static final String USER_STATUS_VERIFY_PASS= "1";
	
	/**
	 * 用户状态-开通进件
	 */
	public static final String USER_STATUS_OPEN_INCOMING= "4";
	
}
